home *** CD-ROM | disk | FTP | other *** search
- global xxoldMenus, xxNumOldMenus,mS
- put true into myreset
- put the number of menus into tmn
- if there is a menu tStr("LibMsg",64) then delete menu tStr("LibMsg",64)
- if xxoldMenus ¡ "" then
- put line 1 of xxoldmenus into list -- the edit menu
- put item 1 of list into themenu
- delete item 1 of list
- if there is a menu themenu then
- put (the number of menuitems in menu themenu = the number of items in list) into myreset
- else
- put false into myreset
- end if
- end if
- put (tmn = xxNumOldMenus) and (myreset) into myreset
- if myreset then
- reset menubar
- end if
- show menubar
- put "true" into mS
- put "" into xxoldmenus
- put 0 into xxNumOldMenus
- if there is a menu tStr("LibMsg",40) then delete menu tStr("LibMsg",40)